/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CommonProfile;

import CRUD.EnterpriseFacadeLocal;
import Entity.Enterprise;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author WinKiQue58
 */
@Stateless
public class Dashboard_Principal implements Dashboard_PrincipalLocal {
    @EJB
    private EnterpriseFacadeLocal enterpriseFacade;
     
    @PersistenceContext(unitName = "S3R4_Orcl-ejbPU")
        private EntityManager em;
        
    
    public List<Enterprise> getEnterprises()
    {
        return enterpriseFacade.findAll();
    }
}
